package es.tikitaka.actions;

import org.hibernate.cfg.DefaultComponentSafeNamingStrategy;

/**
 * 
 * @author Saúl Domínguez
 * @since 2010
 * @category PFC
 */

public class MyClassNamingStrategy extends DefaultComponentSafeNamingStrategy {

    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private static final String TT_PREFIX = "TT_";

    @Override
    public String tableName(String tableName) {
        if (!tableName.startsWith(TT_PREFIX)) {
            tableName = TT_PREFIX.concat(tableName);
        }
        return tableName;
    }
}